set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_SYSTEM_PROCESSOR armv7)
set(MR133_TOOLCHAIN $ENV{MR133_TOOLCHAIN})
set(CMAKE_C_COMPILER ${MR133_TOOLCHAIN}/bin/arm-openwrt-linux-gcc)
set(CMAKE_CXX_COMPILER ${MR133_TOOLCHAIN}/bin/arm-openwrt-linux-g++)

link_directories(${MR133_TOOLCHAIN}/lib)

set(CMAKE_FIND_ROOT_PATH ${MR133_TOOLCHAIN})
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)


